package com.agileboot.domain.medicine.command;

import com.agileboot.common.annotation.ExcelColumn;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class MedicineCommand {
    //中文名字
    @ExcelColumn(name = "名字")
    @NotBlank(message = "公告标题不能为空")
    @Size(max = 50, message = "公告标题不能超过50个字符")
    private String name;
    //别名
    @ExcelColumn(name = "别名")
    private String nickName;
    //图片列表
    @ExcelColumn(name = "图片列表")
    private String image;
    //植物形态
    @ExcelColumn(name = "植物形态")
    private String originalForm;
    // 产地分布
    @ExcelColumn(name = "产地分布")
    private String address;
    //采收加工
    @ExcelColumn(name = "采收加工")
    private String gather;
    //药材性状
    @ExcelColumn(name = "药材性状")
    private String shape;
    //性味归经
    @ExcelColumn(name = "性味归经")
    private String flavorTropism;
    //功用主治
    @ExcelColumn(name = "功能主治")
    private String effect;
    //化学成分
    @ExcelColumn(name = "化学成分")
    private String composition;
    //宜忌
    @ExcelColumn(name = "宜忌")
    private String taboo;
    //类型
    @ExcelColumn(name = "类型")
    private String type;
    //补充
    @ExcelColumn(name = "补充")
    private String supplement;
}
